View Issue Details

IDProjectCategoryView StatusLast Update
0001290K18X001.00 SKB SWANSWpublic2021-12-24 16:23
Reporter(ALTech) Wooshin Kang Assigned To(ALTech) Sangmin Choi Due Date2021-07-09 14:36
PrioritynormalSeveritys2-severeReproducibilityhave not tried
Status closedResolutionfixed 
Summary0001290: Please apply synaptics patch for multiview channel zapping.
DescriptionPatch for "hang-up in multiview channel zapping " is released
Please apply it.
It will be commited 524 and 531.

Thanks.
TagsNo tags attached.
Attach Tags

Users monitoring this issue

User List There are no users monitoring this issue.

Activities

(ALTech) Wooshin Kang

2021-07-08 13:38

developer  

multiview_zapping_stop.patch (2,600 bytes)   
diff --git a/amp/src/libs/shm/src/amp_shm.c b/amp/src/libs/shm/src/amp_shm.c
index 8d916ef..bfbdf5f 100755
--- a/amp/src/libs/shm/src/amp_shm.c
+++ b/amp/src/libs/shm/src/amp_shm.c
@@ -54,6 +54,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/mman.h>
+#include <unistd.h>
 
 #ifndef BUILDIN_AMP_CORE
 #include "amp_client.h"
@@ -198,18 +199,35 @@ HRESULT AMP_SHM_Allocate_ext(AMP_SHM_TYPE eMemType, UINT32 uiSize, UINT32 uiAlig
         }
 
         AMP_RPC(ret, AMP_LIB_SHM_Allocate, g_shm_ctx.hLib, eMemType, uiSize, uiAlign, phShm);
+ 
+  
         if(ret != SUCCESS) {
-            SHM_ERROR_LOG("Fail to allocate memory errcode(0x%x).\n", HRESULT_VALUE(ret));
-            goto error;
+        	  SHM_ERROR_LOG("#XYZ#1-Fail to allocate memory errcode(0x%x).\n", HRESULT_VALUE(ret));
+        	 sleep(5);
+        	AMP_RPC(ret, AMP_LIB_SHM_Allocate, g_shm_ctx.hLib, eMemType, uiSize, uiAlign, phShm);
+        	if(ret != SUCCESS) {
+              SHM_ERROR_LOG("#XYZ#2-Fail to allocate memory errcode(0x%x).\n", HRESULT_VALUE(ret));
+        			 sleep(10);
+        			AMP_RPC(ret, AMP_LIB_SHM_Allocate, g_shm_ctx.hLib, eMemType, uiSize, uiAlign, phShm);
+        			{
+            SHM_ERROR_LOG("#XYZ#3-Fail to allocate memory errcode(0x%x).\n", HRESULT_VALUE(ret));
+          goto error;
+             }
+          }
         }
+ 
 
         ret = MV_OSAL_SHM_Ref(*phShm, NULL);
     }
 error:
 #endif
+
+         
+ 
     if (ret != SUCCESS) {
-        SHM_ERROR_LOG("Fail to allocate errcode(0x%x).\n", HRESULT_VALUE(ret));
+        SHM_ERROR_LOG("#XYZ#Fail to allocate errcode(0x%x).\n", HRESULT_VALUE(ret));
     }
+ 
 
     SHM_API_EXIT(ret);
     return ret;
diff --git a/osal/ion/ion.c b/osal/ion/ion.c
index b87c4ef..a3863a6 100755
--- a/osal/ion/ion.c
+++ b/osal/ion/ion.c
@@ -166,11 +166,25 @@ int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask,
 	}
 	ret = ioctl(fd, ION_IOC_ALLOC, &data);
 	if (ret < 0) {
-		ion_printf("ion_alloc failed with code %d errno[%d][%s]\n",
+
+		#if 1 //kail test 
+		ion_printf("#XYZ#_1-ion_alloc failed retry after 5sec\n");
+		sleep(5);
+		ret = ioctl(fd, ION_IOC_ALLOC, &data);	
+		if (ret < 0) {
+		ion_printf("#XYZ#_2-ion_alloc failed retry after 10sec\n");
+			        sleep(10);
+					ret = ioctl(fd, ION_IOC_ALLOC, &data);		
+			}
+		
+       if (ret < 0){
+		#endif
+		    ion_printf("#XYZ#_3 ion_alloc failed with code %d errno[%d][%s]\n",
 			ret, errno, strerror(errno));
-		ion_dump_backtrace("ION");
+		    ion_dump_backtrace("ION");
 		return ret;
 	}
+		}
 	*handle = data.handle;
 	return ret;
 }
multiview_zapping_stop.patch (2,600 bytes)   

(SW) Jacky Chiang

2021-07-09 17:28

manager   ~0007640

Reminder sent to: (SW) Jason Ling

(SW) Jason Ling

2021-07-13 15:38

developer   ~0007668

Already committed 524 and 531.

(SW) Jason Ling

2021-08-09 19:35

developer   ~0007835

Hi Wooshin,

I reopen this issue, because this patch make the side effect on CTS/CTS-ON-GSI

Please check the following link,
https://synaextjira.atlassian.net/browse/SKBSBALT-162

(ALTech) Wooshin Kang

2021-08-18 15:17

developer   ~0007895

Hi jason,

Any update..?

(SW) Jason Ling

2021-08-18 16:08

developer   ~0007916

Hi Wooshin,

Could you check it with Synaptics Tony directly?

We check this issue with Synaptics China FAE Jiamin every meeting, He always replies to me that Tony is working on it.

(ALTech) Wooshin Kang

2021-08-18 16:44

developer   ~0007917

Hi Jason,

I will contact him.

Thanks.

(SW) Jason Ling

2021-09-07 17:51

developer   ~0008099

Hi all,

Synaptics has released new patch on the following link, I have already applied it on Bitbucket. You can check it with Daily build
https://synaextjira.atlassian.net/browse/SKBSBALT-162

(ALTech) Wooshin Kang

2021-09-28 10:27

developer   ~0008315

Hi jason,

I want to share that this issue is happen yet.

(SW) Jason Ling

2021-12-24 16:23

developer   ~0009112

Fix, so I close it.

Issue History

Date Modified Username Field Change
2021-07-08 13:38 (ALTech) Wooshin Kang New Issue
2021-07-08 13:38 (ALTech) Wooshin Kang Status new => assigned
2021-07-08 13:38 (ALTech) Wooshin Kang Assigned To => (SW) Jacky Chiang
2021-07-08 13:38 (ALTech) Wooshin Kang File Added: multiview_zapping_stop.patch
2021-07-09 17:27 (SW) Jacky Chiang Assigned To (SW) Jacky Chiang => (SW) Jason Ling
2021-07-09 17:28 (SW) Jacky Chiang Note Added: 0007640
2021-07-13 15:38 (SW) Jason Ling Status assigned => resolved
2021-07-13 15:38 (SW) Jason Ling Resolution open => fixed
2021-07-13 15:38 (SW) Jason Ling Description Updated
2021-07-13 15:38 (SW) Jason Ling Note Added: 0007668
2021-08-09 19:35 (SW) Jason Ling Status resolved => new
2021-08-09 19:35 (SW) Jason Ling Resolution fixed => reopened
2021-08-09 19:35 (SW) Jason Ling Note Added: 0007835
2021-08-18 15:17 (ALTech) Wooshin Kang Note Added: 0007895
2021-08-18 16:08 (SW) Jason Ling Note Added: 0007916
2021-08-18 16:27 (ALTech) Wooshin Kang Assigned To (SW) Jason Ling => (ALTech) Sangmin Choi
2021-08-18 16:44 (ALTech) Wooshin Kang Note Added: 0007917
2021-09-07 17:51 (SW) Jason Ling Status new => resolved
2021-09-07 17:51 (SW) Jason Ling Resolution reopened => fixed
2021-09-07 17:51 (SW) Jason Ling Note Added: 0008099
2021-09-28 10:27 (ALTech) Wooshin Kang Note Added: 0008315
2021-12-24 16:23 (SW) Jason Ling Status resolved => closed
2021-12-24 16:23 (SW) Jason Ling Note Added: 0009112